package com.wmyg.antifake.bean;

import org.apache.ibatis.type.Alias;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Alias("Product")
public class Product implements Serializable {

    private static final long serialVersionUID = 8666851615464463473L;

    private String productId;//'产品编号'
    private String productName;//产品名称'
    private String productStandard;//'产品规格'
    private String productImg;//'产品展示图片url'
    private String productDescription;//'产品描述'
    private String productCert;//'产品证书图像url'
    private String logo;//'产品证书图像url'
    private Integer brandId;//品牌ID
    private Integer factoryId;//工厂ID

    private String brandName;
    private String factoryName ;

    private Date addTime;
    private Date modifyTime;

    private Brand brand;

    private Factory factory;

    private Date qualityTime;

    private Integer totalNum;//总二维码数

    private List<Picture> imgList;//产品展示图片

    private List<Picture> logoList;//logo展示图片

    private List<Picture> certList;//证书展示图片

    public Date getQualityTime () {
        return qualityTime;
    }

    public void setQualityTime (Date qualityTime) {
        this.qualityTime = qualityTime;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getProductStandard() {
        return productStandard;
    }

    public void setProductStandard(String productStandard) {
        this.productStandard = productStandard;
    }

    public String getProductImg() {
        return productImg;
    }

    public void setProductImg(String productImg) {
        this.productImg = productImg;
    }

    public String getProductDescription() {
        return productDescription;
    }

    public void setProductDescription(String productDescription) {
        this.productDescription = productDescription;
    }

    public String getProductCert() {
        return productCert;
    }

    public void setProductCert(String productCert) {
        this.productCert = productCert;
    }

    public Integer getBrandId() {
        return brandId;
    }

    public void setBrandId(Integer brandId) {
        this.brandId = brandId;
    }

    public Integer getFactoryId() {
        return factoryId;
    }

    public void setFactoryId(Integer factoryId) {
        this.factoryId = factoryId;
    }

    public Brand getBrand() {
        return brand;
    }

    public void setBrand(Brand brand) {
        this.brand = brand;
    }

    public Factory getFactory() {
        return factory;
    }

    public void setFactory(Factory factory) {
        this.factory = factory;
    }

    public String getBrandName() {
        return brandName;
    }

    public void setBrandName(String brandName) {
        this.brandName = brandName;
    }

    public String getFactoryName() {
        return factoryName;
    }

    public void setFactoryName(String factoryName) {
        this.factoryName = factoryName;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public Integer getTotalNum() {
        return totalNum;
    }

    public void setTotalNum(Integer totalNum) {
        this.totalNum = totalNum;
    }

    public List<Picture> getImgList() {
        return imgList;
    }

    public void setImgList(List<Picture> imgList) {
        this.imgList = imgList;
    }

    public List<Picture> getLogoList() {
        return logoList;
    }

    public void setLogoList(List<Picture> logoList) {
        this.logoList = logoList;
    }

    public List<Picture> getCertList() {
        return certList;
    }

    public void setCertList(List<Picture> certList) {
        this.certList = certList;
    }

    @Override
    public String toString() {
        return "Product{" +
                "productId='" + productId + '\'' +
                ", productName='" + productName + '\'' +
                ", productStandard='" + productStandard + '\'' +
                ", productImg='" + productImg + '\'' +
                ", productDescription='" + productDescription + '\'' +
                ", productCert='" + productCert + '\'' +
                ", logo='" + logo + '\'' +
                ", brandId=" + brandId +
                ", factoryId=" + factoryId +
                ", brandName='" + brandName + '\'' +
                ", factoryName='" + factoryName + '\'' +
                ", addTime=" + addTime +
                ", modifyTime=" + modifyTime +
                ", brand=" + brand +
                ", factory=" + factory +
                ",qualityTime="+ qualityTime +
                '}';
    }
}
